package com.desksoft.ecommerce.entity.mall.dto;

import java.util.ArrayList;
import java.util.List;

public class SettingviewnameExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SettingviewnameExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSiteidIsNull() {
            addCriterion("SiteID is null");
            return (Criteria) this;
        }

        public Criteria andSiteidIsNotNull() {
            addCriterion("SiteID is not null");
            return (Criteria) this;
        }

        public Criteria andSiteidEqualTo(Integer value) {
            addCriterion("SiteID =", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidNotEqualTo(Integer value) {
            addCriterion("SiteID <>", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidGreaterThan(Integer value) {
            addCriterion("SiteID >", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidGreaterThanOrEqualTo(Integer value) {
            addCriterion("SiteID >=", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidLessThan(Integer value) {
            addCriterion("SiteID <", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidLessThanOrEqualTo(Integer value) {
            addCriterion("SiteID <=", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidIn(List<Integer> values) {
            addCriterion("SiteID in", values, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidNotIn(List<Integer> values) {
            addCriterion("SiteID not in", values, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidBetween(Integer value1, Integer value2) {
            addCriterion("SiteID between", value1, value2, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidNotBetween(Integer value1, Integer value2) {
            addCriterion("SiteID not between", value1, value2, "siteid");
            return (Criteria) this;
        }

        public Criteria andGroupidIsNull() {
            addCriterion("GroupID is null");
            return (Criteria) this;
        }

        public Criteria andGroupidIsNotNull() {
            addCriterion("GroupID is not null");
            return (Criteria) this;
        }

        public Criteria andGroupidEqualTo(String value) {
            addCriterion("GroupID =", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotEqualTo(String value) {
            addCriterion("GroupID <>", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidGreaterThan(String value) {
            addCriterion("GroupID >", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidGreaterThanOrEqualTo(String value) {
            addCriterion("GroupID >=", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidLessThan(String value) {
            addCriterion("GroupID <", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidLessThanOrEqualTo(String value) {
            addCriterion("GroupID <=", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidLike(String value) {
            addCriterion("GroupID like", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotLike(String value) {
            addCriterion("GroupID not like", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidIn(List<String> values) {
            addCriterion("GroupID in", values, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotIn(List<String> values) {
            addCriterion("GroupID not in", values, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidBetween(String value1, String value2) {
            addCriterion("GroupID between", value1, value2, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotBetween(String value1, String value2) {
            addCriterion("GroupID not between", value1, value2, "groupid");
            return (Criteria) this;
        }

        public Criteria andPurposeidIsNull() {
            addCriterion("PurposeID is null");
            return (Criteria) this;
        }

        public Criteria andPurposeidIsNotNull() {
            addCriterion("PurposeID is not null");
            return (Criteria) this;
        }

        public Criteria andPurposeidEqualTo(String value) {
            addCriterion("PurposeID =", value, "purposeid");
            return (Criteria) this;
        }

        public Criteria andPurposeidNotEqualTo(String value) {
            addCriterion("PurposeID <>", value, "purposeid");
            return (Criteria) this;
        }

        public Criteria andPurposeidGreaterThan(String value) {
            addCriterion("PurposeID >", value, "purposeid");
            return (Criteria) this;
        }

        public Criteria andPurposeidGreaterThanOrEqualTo(String value) {
            addCriterion("PurposeID >=", value, "purposeid");
            return (Criteria) this;
        }

        public Criteria andPurposeidLessThan(String value) {
            addCriterion("PurposeID <", value, "purposeid");
            return (Criteria) this;
        }

        public Criteria andPurposeidLessThanOrEqualTo(String value) {
            addCriterion("PurposeID <=", value, "purposeid");
            return (Criteria) this;
        }

        public Criteria andPurposeidLike(String value) {
            addCriterion("PurposeID like", value, "purposeid");
            return (Criteria) this;
        }

        public Criteria andPurposeidNotLike(String value) {
            addCriterion("PurposeID not like", value, "purposeid");
            return (Criteria) this;
        }

        public Criteria andPurposeidIn(List<String> values) {
            addCriterion("PurposeID in", values, "purposeid");
            return (Criteria) this;
        }

        public Criteria andPurposeidNotIn(List<String> values) {
            addCriterion("PurposeID not in", values, "purposeid");
            return (Criteria) this;
        }

        public Criteria andPurposeidBetween(String value1, String value2) {
            addCriterion("PurposeID between", value1, value2, "purposeid");
            return (Criteria) this;
        }

        public Criteria andPurposeidNotBetween(String value1, String value2) {
            addCriterion("PurposeID not between", value1, value2, "purposeid");
            return (Criteria) this;
        }

        public Criteria andNamekeyIsNull() {
            addCriterion("NameKey is null");
            return (Criteria) this;
        }

        public Criteria andNamekeyIsNotNull() {
            addCriterion("NameKey is not null");
            return (Criteria) this;
        }

        public Criteria andNamekeyEqualTo(String value) {
            addCriterion("NameKey =", value, "namekey");
            return (Criteria) this;
        }

        public Criteria andNamekeyNotEqualTo(String value) {
            addCriterion("NameKey <>", value, "namekey");
            return (Criteria) this;
        }

        public Criteria andNamekeyGreaterThan(String value) {
            addCriterion("NameKey >", value, "namekey");
            return (Criteria) this;
        }

        public Criteria andNamekeyGreaterThanOrEqualTo(String value) {
            addCriterion("NameKey >=", value, "namekey");
            return (Criteria) this;
        }

        public Criteria andNamekeyLessThan(String value) {
            addCriterion("NameKey <", value, "namekey");
            return (Criteria) this;
        }

        public Criteria andNamekeyLessThanOrEqualTo(String value) {
            addCriterion("NameKey <=", value, "namekey");
            return (Criteria) this;
        }

        public Criteria andNamekeyLike(String value) {
            addCriterion("NameKey like", value, "namekey");
            return (Criteria) this;
        }

        public Criteria andNamekeyNotLike(String value) {
            addCriterion("NameKey not like", value, "namekey");
            return (Criteria) this;
        }

        public Criteria andNamekeyIn(List<String> values) {
            addCriterion("NameKey in", values, "namekey");
            return (Criteria) this;
        }

        public Criteria andNamekeyNotIn(List<String> values) {
            addCriterion("NameKey not in", values, "namekey");
            return (Criteria) this;
        }

        public Criteria andNamekeyBetween(String value1, String value2) {
            addCriterion("NameKey between", value1, value2, "namekey");
            return (Criteria) this;
        }

        public Criteria andNamekeyNotBetween(String value1, String value2) {
            addCriterion("NameKey not between", value1, value2, "namekey");
            return (Criteria) this;
        }

        public Criteria andDefaultnameIsNull() {
            addCriterion("DefaultName is null");
            return (Criteria) this;
        }

        public Criteria andDefaultnameIsNotNull() {
            addCriterion("DefaultName is not null");
            return (Criteria) this;
        }

        public Criteria andDefaultnameEqualTo(String value) {
            addCriterion("DefaultName =", value, "defaultname");
            return (Criteria) this;
        }

        public Criteria andDefaultnameNotEqualTo(String value) {
            addCriterion("DefaultName <>", value, "defaultname");
            return (Criteria) this;
        }

        public Criteria andDefaultnameGreaterThan(String value) {
            addCriterion("DefaultName >", value, "defaultname");
            return (Criteria) this;
        }

        public Criteria andDefaultnameGreaterThanOrEqualTo(String value) {
            addCriterion("DefaultName >=", value, "defaultname");
            return (Criteria) this;
        }

        public Criteria andDefaultnameLessThan(String value) {
            addCriterion("DefaultName <", value, "defaultname");
            return (Criteria) this;
        }

        public Criteria andDefaultnameLessThanOrEqualTo(String value) {
            addCriterion("DefaultName <=", value, "defaultname");
            return (Criteria) this;
        }

        public Criteria andDefaultnameLike(String value) {
            addCriterion("DefaultName like", value, "defaultname");
            return (Criteria) this;
        }

        public Criteria andDefaultnameNotLike(String value) {
            addCriterion("DefaultName not like", value, "defaultname");
            return (Criteria) this;
        }

        public Criteria andDefaultnameIn(List<String> values) {
            addCriterion("DefaultName in", values, "defaultname");
            return (Criteria) this;
        }

        public Criteria andDefaultnameNotIn(List<String> values) {
            addCriterion("DefaultName not in", values, "defaultname");
            return (Criteria) this;
        }

        public Criteria andDefaultnameBetween(String value1, String value2) {
            addCriterion("DefaultName between", value1, value2, "defaultname");
            return (Criteria) this;
        }

        public Criteria andDefaultnameNotBetween(String value1, String value2) {
            addCriterion("DefaultName not between", value1, value2, "defaultname");
            return (Criteria) this;
        }

        public Criteria andWebviewnameIsNull() {
            addCriterion("WebViewName is null");
            return (Criteria) this;
        }

        public Criteria andWebviewnameIsNotNull() {
            addCriterion("WebViewName is not null");
            return (Criteria) this;
        }

        public Criteria andWebviewnameEqualTo(String value) {
            addCriterion("WebViewName =", value, "webviewname");
            return (Criteria) this;
        }

        public Criteria andWebviewnameNotEqualTo(String value) {
            addCriterion("WebViewName <>", value, "webviewname");
            return (Criteria) this;
        }

        public Criteria andWebviewnameGreaterThan(String value) {
            addCriterion("WebViewName >", value, "webviewname");
            return (Criteria) this;
        }

        public Criteria andWebviewnameGreaterThanOrEqualTo(String value) {
            addCriterion("WebViewName >=", value, "webviewname");
            return (Criteria) this;
        }

        public Criteria andWebviewnameLessThan(String value) {
            addCriterion("WebViewName <", value, "webviewname");
            return (Criteria) this;
        }

        public Criteria andWebviewnameLessThanOrEqualTo(String value) {
            addCriterion("WebViewName <=", value, "webviewname");
            return (Criteria) this;
        }

        public Criteria andWebviewnameLike(String value) {
            addCriterion("WebViewName like", value, "webviewname");
            return (Criteria) this;
        }

        public Criteria andWebviewnameNotLike(String value) {
            addCriterion("WebViewName not like", value, "webviewname");
            return (Criteria) this;
        }

        public Criteria andWebviewnameIn(List<String> values) {
            addCriterion("WebViewName in", values, "webviewname");
            return (Criteria) this;
        }

        public Criteria andWebviewnameNotIn(List<String> values) {
            addCriterion("WebViewName not in", values, "webviewname");
            return (Criteria) this;
        }

        public Criteria andWebviewnameBetween(String value1, String value2) {
            addCriterion("WebViewName between", value1, value2, "webviewname");
            return (Criteria) this;
        }

        public Criteria andWebviewnameNotBetween(String value1, String value2) {
            addCriterion("WebViewName not between", value1, value2, "webviewname");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("Status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("Status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("Status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("Status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("Status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("Status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("Status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("Status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("Status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("Status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("Status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("Status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCommentIsNull() {
            addCriterion("Comment is null");
            return (Criteria) this;
        }

        public Criteria andCommentIsNotNull() {
            addCriterion("Comment is not null");
            return (Criteria) this;
        }

        public Criteria andCommentEqualTo(String value) {
            addCriterion("Comment =", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotEqualTo(String value) {
            addCriterion("Comment <>", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentGreaterThan(String value) {
            addCriterion("Comment >", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentGreaterThanOrEqualTo(String value) {
            addCriterion("Comment >=", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentLessThan(String value) {
            addCriterion("Comment <", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentLessThanOrEqualTo(String value) {
            addCriterion("Comment <=", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentLike(String value) {
            addCriterion("Comment like", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotLike(String value) {
            addCriterion("Comment not like", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentIn(List<String> values) {
            addCriterion("Comment in", values, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotIn(List<String> values) {
            addCriterion("Comment not in", values, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentBetween(String value1, String value2) {
            addCriterion("Comment between", value1, value2, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotBetween(String value1, String value2) {
            addCriterion("Comment not between", value1, value2, "comment");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}